﻿using DataMID;
using System.Runtime.InteropServices;

namespace Sender
{
    public class PubCommon
    {
        [DllImport("FastDDSPubSub", CharSet = CharSet.Ansi)]
        public static extern void InitPub();

        [DllImport("FastDDSPubSub",CharSet=CharSet.Ansi)]
        public static extern void Send(string str1,string str2);

        [DllImport("FastDDSPubSub", CharSet = CharSet.Ansi)]
        public static extern void SendArr(ref TestArray data);

        [DllImport("FastDDSPubSub", CharSet = CharSet.Ansi)]
        public static extern void Send2(ref TestString data);
    }
}
